<template>
	<u-picker :itemHeight="80" closeOnClickOverlay :defaultIndex="[defaultIndex]" @close="show=false" @cancel="show=false" @confirm="confirmType" :show="show" :columns="columns"></u-picker>
</template>

<script>
import payType from "../utils/payType";
	export default {
		name:"payPick",
		props:{
			defaultIndex:{
				default:0
			}
		},
		data() {
			return {
				show:false,
				columns: [
          payType
				],
			};
		},
		methods:{
			confirmType(e){
				this.$emit("confirm",{type:e.indexs[0],name:e.value[0]})
				this.show = false
			},
			open(){
				this.show = true
			}
		}
	}
</script>

<style>

</style>
